-----------------------------------
-- Area: Korroloka Tunnel (173)
-- Mob: Bogy
-- @zone 173
-- @pos many
-----------------------------------

-- require("scripts/zones/Korroloka_Tunnel/MobIDs");

-----------------------------------
-- onMobDeath
-----------------------------------

function onMobDeath(mob,killer)	

	mob = mob:getID();
	if (Dame_Blanche_PH[mob] ~= nil) then

		local ToD = GetServerVariable("[POP]Dame_Blanche");
		if (ToD <= os.time(t) and GetMobAction(Dame_Blanche) == 0) then
			if (math.random((1),(20)) == 5) then
				UpdateNMSpawnPoint(Dame_Blanche);
				GetMobByID(Dame_Blanche):setRespawnTime(GetMobRespawnTime(mob));
				SetServerVariable("[PH]Dame_Blanche", mob);
				DeterMob(mob, true);
			end
		end
	end

end;
